﻿using Api.Core.Model.Entity;
using Api.Core.Model.Table;
using Api.Core.Model.User;
using Api.Core.Model.ViewModel;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Api.Core.IRepository.User
{
    public interface IUserRepository : IBaseRepository<UserTable>
    {
        /// <summary>
        /// 获取用户权限
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<List<UserEntity>> GetUserGroup(UserViewModel model);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<bool> AddUserWithGroup(UserEntity model);
    }
}
